package cn.sofwin.ms.dubbo.server.impl;


import cn.sofwin.ms.entity.User;
import cn.sofwin.ms.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class UserServiceImpl implements UserService {

    @Override
    public User login(String username, String password) {

        User user =null;
        if ("z3".equals(username) && "123456".equals(password)){
            user= new User();
            user.setUsername(username);
            user.setPassword(password);
        }

        return user;
    }
}
